package com.gmail.viktor.yuryev.actions;

import com.gmail.viktor.yuryev.ui.ServerListConfigurationForm;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.options.ShowSettingsUtil;

/**
 * Created by Viktor Yuryev on 4/14/2014.
 */
public class ConfigureServersAction extends AnAction {
    public ConfigureServersAction() {
        super("Configure Servers",null,AllIcons.General.Settings);

    }

    @Override
    public void actionPerformed(AnActionEvent anActionEvent) {
        ShowSettingsUtil instance = ShowSettingsUtil.getInstance();
        ServerListConfigurationForm serverListConfigurationForm = new ServerListConfigurationForm();
        instance.editConfigurable(anActionEvent.getProject(), serverListConfigurationForm);
    }
}
